package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Description: 实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "cd_product_manage")
public class CdProductManageEntity implements Serializable {

    /**
    * id
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    /**
    * 产品分类：0半成品；1成品
    */
    @Column(name = "category" )
    private String category;

    /**
    * 产品名称
    */
    @Column(name = "product_name" )
    private String productName;

    /**
    * 规格
    */
    @Column(name = "specification" )
    private String specification;

    /**
    * 颜色
    */
    @Column(name = "color" )
    private String color;

    /**
    * 客户id
    */
    @Column(name = "com_id" )
    private String comId;

    /**
    * 是否带涂层：1:有；0:无
    */
    @Column(name = "coating" )
    private String coating;

}
